

module.exports = function(decode,token,sql){
   let account = decode.decode('Bearer ' + token)
   let syntax = syntax || "select * from nideshop_account where mobile=? and password=?";
   sql(syntax,[account.mobile,account.password]).then(result =>{
       return result[0]
   }).catch(err =>{
       return err

   })
}